package educationaladministrationsystem.CSM.Controller.StudentAndTeacher.Teacher;

import educationaladministrationsystem.Result.Result;
import educationaladministrationsystem.CSM.Mapper.Service.StudentAndTeacher.Teacher.TeacherCourseScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Teacher/CourseSchedule")
public class TeacherCourseScheduleController {
    @Autowired
    private TeacherCourseScheduleService teacherCourseScheduleService;

    @GetMapping("/getTeacherCourse")
    public Result getTeacherCourse(String UID) {
        return Result.success(teacherCourseScheduleService.getTeacherCourse(UID));
    }
}
